#!/bin/bash
if [[ $# < 2 ]]
then
	echo "usage: `basename $0` file tags..." 1>&2
	exit 1
fi

TAGS=
FILE=$1
shift

for TAG in $@
do
	TAGS="$TAG,$TAGS"
done

echo "$FILE:$TAGS" >> .`basename $0`
